package com.ep.modules.app.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ep.common.utils.PageUtils;
import com.ep.modules.app.dao.AppAuditReportMapper;
import com.ep.modules.app.entity.AppAuditReport;
import com.ep.modules.app.entity.AppAuditReportExample;
import com.ep.modules.app.service.AppAuditReportService;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AppAuditReportServiceImpl implements AppAuditReportService {
    @Autowired
    private AppAuditReportMapper appAuditReportMapper;

    public PageUtils queryPage(Map<String, Object> params) {
        String searchKey = (String)params.get("searchKey");
        Long searchUserId = (Long)params.get("searchUserId");
        AppAuditReportExample example = new AppAuditReportExample();
        AppAuditReportExample.Criteria criteria = example.createCriteria();
        //List<AppAuditReport> list = appAuditReportMapper.selectByExample(example);
        Page<AppAuditReport> page = new Page<>();
       // page.setRecords(list);
        return new PageUtils(page);
    }

    public AppAuditReport getById(Long id) {

       // return appAuditReportMapper.selectByPrimaryKey(id.intValue());
        return null;
    }

    public void save(AppAuditReport entity) {

        //appAuditReportMapper.insert(entity);
    }

    public void update(AppAuditReport entity) {
       // appAuditReportMapper.updateByPrimaryKeySelective(entity);
    }

    public void deleteBatch(Long[] ids) {
        for (Long id : ids) {
                appAuditReportMapper.deleteByPrimaryKey(id.intValue());
        }
    }
}